# -*- coding:utf-8 -*

import json
import requests

# 新用户注册接口
payload = {'phone': '××××', 'password': '123456','latitude':'080d7d8e873', 'longitude':'080d7d8e873','addressDetail':'080d7d8e873','areaCode':'080d7d8e873'}

r = requests.put('http://192.168.×.×/appserver/user/registerUser',data=payload)

outdata = json.loads(r.text)


# print r.text
# print r
print outdata
print outdata.keys()
print outdata['code']

print outdata['msg']












